package com.wxd.framework.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.wxd.framework.common.mybatis.MyBatisEntityDao;
import com.wxd.framework.entity.UserRole;

@Repository
public class UserRoleDao extends MyBatisEntityDao<UserRole>{

	public int deleteByUserId(String userId){
		return super.getSqlSession().delete(super.mapNamespace + ".deleteByUserId", userId);
	}
	
	public List<UserRole> selectByUserId(String userId){
		return super.getSqlSession().selectList(super.mapNamespace + ".selectByUserId", userId);
	}
}